package com.hy.video.monitor.util;

public class Constants {
    public static final String PROBLEM_BASE_URI = "https://zhushucloud.com";
    // ---- 正则表达式相关 ----
    public static final String PATTERN_MOBILE = "^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\\d{8}$";
    public static final String PATTERN_USERNAME = "^[a-z0-9_-]{3,50}$";
    public static final String PATTERN_ROLE_NAME = "^[a-zA-Z0-9_]{3,50}$";
    // ---- 授权相关 ----
    public static final String ROLE_PREFIX = "ROLE_";
    public static final String AUTHORITY_USER = "USER";
    public static final String AUTHORITY_STAFF = "STAFF";
    public static final String AUTHORITY_MANAGER = "MANAGER";
    public static final String AUTHORITY_ADMIN = "ADMIN";
    public static final String AUTHORITY_MENU = "MENU";


    public static final String ROLE_USER = ROLE_PREFIX + AUTHORITY_USER;
    public static final String ROLE_STAFF = ROLE_PREFIX + AUTHORITY_STAFF;
    public static final String ROLE_MANAGER = ROLE_PREFIX + AUTHORITY_MANAGER;
    public static final String ROLE_ADMIN = ROLE_PREFIX + AUTHORITY_ADMIN;
    public static final String ROLE_MENU = ROLE_PREFIX + AUTHORITY_MENU;


    // 国标设备
    // 国标设备管理
    public static final String AUTHORITY_NSEQUIPMENT_ADMIN = "NSEQUIPMENT_ADMIN";
    // 查看通道
    public static final String AUTHORITY_NSEQUIPMENT_READ = "NSEQUIPMENT_READ";
    // 更新通道
    public static final String AUTHORITY_NSEQUIPMENT_UPDATE = "NSEQUIPMENT_UPDATE";
    // 远程重启
    public static final String AUTHORITY_NSEQUIPMENT_RESTART = "NSEQUIPMENT_RESTART";
    // 删除设备
    public static final String AUTHORITY_NSEQUIPMENT_DELETE = "NSEQUIPMENT_DELETE";


    // 通道管理
    // 设备播放
    public static final String AUTHORITY_CHANNEL_PLAY = "CHANNEL_PLAY";
    // 设备录像
    public static final String AUTHORITY_CHANNEL_REPLAY = "CHANNEL_REPLAY";

    // 国标级联
    // 添加上级平台
    public static final String AUTHORITY_NSCASCASE_ADD = "NSCASCASE_ADD";
    // 删除上级平台
    public static final String AUTHORITY_NSCASCASE_DELETE = "NSCASCASE_DELETE";


    // 用户管理
    public static final String AUTHORITY_USER_ADMIN = "USER_ADMIN";
    public static final String AUTHORITY_USER_UPDATE = "USER_UPDATE";
    public static final String AUTHORITY_USER_CREATE = "USER_CREATE";
    public static final String AUTHORITY_USER_READ = "USER_READ";

    // 切换用户是否激活状态
    public static final String AUTHORITY_USER_ACTIVE_TOGGLE = "USER_ACTIVE_TOGGLE";


    // 管理员直接创建用户
    public static final String AUTHORITY_USER_ADMIN_ADD = "USER_ADMIN_ADD";

    // 角色管理
    public static final String AUTHORITY_ROLE_ADMIN = "ROLE_ADMIN";
    // 添加角色
    public static final String AUTHORITY_ROLE_ADD = "ROLE_ADD";
    // 修改角色
    public static final String AUTHORITY_ROLE_UPDATE = "ROLE_UPDATE";
    // 删除角色
    public static final String AUTHORITY_ROLE_DELETE = "ROLE_DELETE";

    // 权限管理
    // 更新指定角色ID权限
    public static final String AUTHORITY_ROLE_PERMISSION_UPDATE = "ROLE_PERMISSION_UPDATE";


    //清空日志
    public static final String AUTHORITY_LOGMANA_CLEAR = "LOGMANA_CLEAR";

    // ---- 缓存相关 ----
    public static final String CACHE_MFA = "cacheMfa";
    public static final String CACHE_ALL_PERMISSIONS = "cacheAllPermissions";
    public static final String CACHE_ALL_ROLES = "cacheAllRoles";
}
